<!DOCTYPE html>
<html>
    <head>
        <title>宋濟川地產</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
        <link href="dist/css/swiper.min.css" rel="stylesheet" type="text/css"/>
        <link href="css/sjc.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <div class="top"><div class="logo"><img src="images/logo.png"></div></div>
        <div class="col-nav text-center">
             <div class="col-md-12 nav-btn text-center"><span>聯繫我們</span><i class="fa fa-bars nav-ico"></i></div>
            <ul>
                <li><a href="index.html">首頁</a></li>
                <li><a href="about.html">關於我們</a></li>
                <li><a href="market.html">市場動態</a></li>
                <li><a href="search.html">樓盤信息</a></li>
                <li class="active"><a href="contact.html">聯繫我們</a></li>
            </ul>
        </div>
        
        <div class="contact text-center">
            
            <div class="container">
                 <h3 class="detail-font text-left" data-to="22.345775" data-po="113.4145466">聯繫我們</h3>
                 <div class="col-md-6">
                  <div class="gmap3" id="map-canvas"></div>
                 </div>
                <div class="swiper-container swiper1 col-md-6">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide">
                             <div class="contact-border">
                                <i class="fa fa-home contact-ico"></i>
                                <p>texttext</p>
                            </div>
                            <div class="contact-border">
                                <i class="fa fa-map-marker contact-ico map-ico" data-to="22.345775" data-po="113.4145466"></i>
                                <p>texttext</p>
                            </div>
                            <div class="contact-border">
                                <i class="fa fa-phone contact-ico"></i>
                                <p>0759-565656</p>
                            </div>
                            <div class=" contact-border">
                                <i class="fa fa-envelope-o contact-ico"></i>
                                <p>mail.info</p>
                            </div>

                            <div class="contact-border">
                                <i class="fa fa-fax contact-ico"></i>
                                <p>123456789</p>
                            </div>
                        </div>  
                         <div class="swiper-slide">
                             <div class="contact-border">
                                <i class="fa fa-home contact-ico"></i>
                                <p>texttext</p>
                            </div>
                            <div class="contact-border">
                                <i class="fa fa-map-marker contact-ico map-ico" data-to="22.345775" data-po="1"></i>
                                <p>texttext</p>
                            </div>
                            <div class="contact-border">
                                <i class="fa fa-phone contact-ico"></i>
                                <p>0759-565656</p>
                            </div>
                            <div class=" contact-border">
                                <i class="fa fa-envelope-o contact-ico"></i>
                                <p>mail.info</p>
                            </div>

                            <div class="contact-border">
                                <i class="fa fa-fax contact-ico"></i>
                                <p>123456789</p>
                            </div>
                        </div>  
                         <div class="swiper-slide">
                             <div class="contact-border">
                                <i class="fa fa-home contact-ico"></i>
                                <p>texttext</p>
                            </div>
                            <div class="contact-border">
                                <i class="fa fa-map-marker contact-ico map-ico" data-to="22.345775" data-po="113.4145466"></i>
                                <p>texttext</p>
                            </div>
                            <div class="contact-border">
                                <i class="fa fa-phone contact-ico"></i>
                                <p>0759-565656</p>
                            </div>
                            <div class=" contact-border">
                                <i class="fa fa-envelope-o contact-ico"></i>
                                <p>mail.info</p>
                            </div>

                            <div class="contact-border">
                                <i class="fa fa-fax contact-ico"></i>
                                <p>123456789</p>
                            </div>
                        </div>  
              </div>
               
                   <div class="swiper-button-next swiper-button-next1"><i class="fa fa-angle-right slide-ico"></i></div>
                   <div class="swiper-button-prev swiper-button-prev1"><i class="fa fa-angle-left slide-ico"></i></div>
            </div>
        </div>
        </div>    
      <div class="messge">
                <div class="messge_nav">聯繫我們</div>
                <div class="message_content">
                  <form action="#" method="post" id="form_message">
                    <input class="message_input " type="text" name="contacts" onfocus="if (value === '姓名') {
                          value = '';
                      }" onblur="if (value === '') {
                                  value = '姓名';
                              }" value="姓名" />
                    <input class="message_input" type="text" name="phone" onfocus="if (value === '電話') {
                                          value = '';
                                      }" onblur="if (value === '') {
                                                  value = '電話';
                                              }" value="電話" />
                    <input class="message_input" type="text" name="email" onfocus="if (value === '郵箱') {
                                                          value = '';
                                                      }" onblur="if (value === '') {
                                                                  value = '郵箱';
                                                              }" value="郵箱" />
                    <textarea class="message_text_area" name="content"></textarea>
                    <input class="message_button" type="submit" value="發送" />
                  </form>
                </div>
              </div> 
        <div class="col-md-12 copyright text-center">Copyright © 2015 2010宋濟川地產公司.版權所有</div>
        <a class="go-top" href="#top"><i class="fa fa-angle-up"></i></a>
        <script src="js/jquery.min.js" type="text/javascript"></script>
        <script src="js/bootstrap.min.js" type="text/javascript"></script>
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&libraries=geometry"></script>
        <script src="dist/js/swiper.js" type="text/javascript"></script>
     
         <script src="js/sjc.js" type="text/javascript"></script> 
        <script type="text/javascript">
var a1=$('.detail-font').attr('data-to');
var a2=$('.detail-font').attr('data-po');
function initialize() {
  var mapOptions = {
    zoom:14,
    center: new google.maps.LatLng(a1,a2),
     streetViewControl: true,
    streetViewControlOptions: {
        position: google.maps.ControlPosition.LEFT_TOP
    },
     mapTypeControlOptions: {
        style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
        position: google.maps.ControlPosition.TOP_RIGHT,
         mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style']
    },
     zoomControl: true,
    zoomControlOptions: {
        style: google.maps.ZoomControlStyle.LARGE,
        position: google.maps.ControlPosition.LEFT_CENTER
    }
  };

  var map = new google.maps.Map(document.getElementById('map-canvas'),
      mapOptions);
 marker2 = new google.maps.Marker({
    map: map,
    animation: google.maps.Animation.DROP,
    position: new google.maps.LatLng(a1,a2)
  });
 var bounds = new google.maps.LatLngBounds(marker2.getPosition());
}
google.maps.event.addDomListener(window, 'load', initialize);
$('.map-ico').click(function(){
  
  var a1=$(this).attr('data-to');
  var a2=$(this).attr('data-po');
  var mapOptions = {
    zoom:14,
    center: new google.maps.LatLng(a1,a2),
     streetViewControl: true,
    streetViewControlOptions: {
        position: google.maps.ControlPosition.LEFT_TOP
    },
     mapTypeControlOptions: {
        style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
        position: google.maps.ControlPosition.TOP_RIGHT,
         mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style']
    },
     zoomControl: true,
    zoomControlOptions: {
        style: google.maps.ZoomControlStyle.LARGE,
        position: google.maps.ControlPosition.LEFT_CENTER
    }
  };

  var map = new google.maps.Map(document.getElementById('map-canvas'),
      mapOptions);
 marker2 = new google.maps.Marker({
    map: map,
    animation: google.maps.Animation.DROP,
    position: new google.maps.LatLng(a1,a2)
  });
 var bounds = new google.maps.LatLngBounds(marker2.getPosition());
});
</script>
    
    </body>
</html>
